<div class="admin">>
    <div class="tab panel dux-box admin-panel">
        <div class="panel-head"><strong>商家会员管理</strong></div>
        <div class="padding border-bottom">
            <a href="{:U('User/index')}" class="button button-small border-green">会员列表</a>
        </div>
        <div class="fixed-empty"></div>
        <form method="get" action="{:U('User/store')}" name="formSearch" id="formSearch">
            <div class="table-tools clearfix ">
                <div class="float-left">
                    <div class="form-inline">
                        <div class="form-group">
                            <div class="field"><label>用户名：</label><input class="input input_big" type="text" name="user_name" value="" /></div>
                            <div class="form-button">
                                <button class="button bg-blue" type="submit">查询</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
        <form method="get" action="{:U('Excel/expOrderExcel')}" name="formSearch" id="formSearch">
            <div class="table-tools clearfix ">
                <div style="text-align:right;">
                    <input  class="button bg-main" type="submit" value="导出Excel" />
                </div>
            </div>
        </form>

        <table class="table tb-type2 nobdb">
            <thead>
                <tr class="thead">
                    <th class="align-center">编号</th>
                    <th class="align-center">会员</th>
                    <th class="align-center">性别</th>
                    <th class="align-center">手机号</th>
                    <th class="align-center">来源</th>
                    <th class="align-center">登陆次数</th>
                    <th class="align-center">注册时间</th>
                    <th class="align-center">操作</th>
                </tr>
            </thead>
            <tbody>
            <foreach item="v" name="list">
                <tr class="hover">
                    <td class="align-center">{$v['user_id']}</td>
                    <td class="align-center">{$v['user_name']}</td>
                    <td class="align-center">
                        <switch name="v.user_sex">
                <case value="1">男</case>
                <case value="2">女</case>
                <default />保密
                </switch>
                </td>
                <td class="align-center">{$v['user_mobile']}</td>
                <td class="nowrap align-center">
                    <switch name="v.user_from">
                <case value="1">手机</case>
                <case value="2">微信</case>
                <default />PC
                </switch>
                </td>
                <td class="nowrap align-center">{$v['user_login_num']}</td>
                <td class="align-center">{$v['user_time']|date='Y-m-d H:i:s',###}</td>
                <td class="w144 align-center">
                    <a class="button bg-red button-little" href="{:U('deleteuser',array('user_id'=>$v['user_id']))}"><i class="icon-minus-circle"></i>禁用</a>
                    <a class="button bg-red button-little js-del" href="{:U('deleteuser',array('user_id'=>$v['user_id']))}"><i class="icon-minus-circle"></i>删除</a>
                    <a class="button bg-green button-little" href="{:U('details',array('user_id'=>$v['user_id']))}" target="_blank" title="预览"><i class="icon-eye"></i>详情</a>
                    <!-- 删除 -->
                </td>
                </tr>
            </foreach>

            </tbody>
            <tfoot>
                <tr class="tfoot">
                    <td colspan="15"><div class="pages clearfix">{$pages}</div></td>
                </tr>
            </tfoot>
        </table>
    </div>
</div>
<script type="text/javascript">
    $('#myform').layer({
        actionUrl: "batchAction",
        deleteUrl: "del",
    });
    $('#query_start_time').duxTime({
        timepicker: false,
    });
    $('#query_end_time').duxTime({
        timepicker: false,
    });
</script>